package com.beordie.service;

import com.beordie.model.Seller;
import com.beordie.model.User;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @Description 旅行社服务层
 * @Date 2021/8/5 13:03
 * @Created 30500
 */
public interface ISellerService {
    /**
     * @description 分页
     * @author 30500
     * @date 2021/8/5 13:04
     * @type [com.beordie.model.Seller, int, int]
     * @return com.github.pagehelper.PageInfo<com.beordie.model.Seller>
     */
    public PageInfo<Seller> findPage(Seller condition, int pageNum, int pageSize);

    /**
     * @description 条件查询
     * @author 30500
     * @date 2021/8/5 13:04
     * @type [com.beordie.model.Seller]
     * @return java.util.List<com.beordie.model.Seller>
     */
    public List<Seller> find();

    /**
     * @description 添加记录
     * @author 30500
     * @date 2021/8/5 13:04
     * @type [com.beordie.model.Seller]
     * @return int
     */
    public int add(Seller seller);

    /**
     * @description 根据主键查找
     * @author 30500
     * @date 2021/8/5 13:04
     * @type [java.lang.Integer]
     * @return com.beordie.model.Seller
     */
    public Seller findById(Integer id);

    /**
     * @description 更新
     * @author 30500
     * @date 2021/8/5 13:05
     * @type [com.beordie.model.Seller]
     * @return int
     */
    public int update(Seller seller);

    /**
     * @description 主键删除
     * @author 30500
     * @date 2021/8/5 13:05
     * @type [java.lang.Integer]
     * @return int
     */
    public int delete(Integer id);
}
